package com.tsll.dao;

import com.tsll.entity.PurchaseBookInfo;
import com.tsll.vo.PurchaseBooksInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Tian
* @description 针对表【purchasebookinfo】的数据库操作Mapper
* @createDate 2024-03-24 16:41:06
* @Entity com.tsll.entity.Purchasebookinfo
*/
public interface PurchaseBookInfoMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(PurchaseBookInfo purchaseBookInfo);

    int insertSelective(PurchaseBookInfo record);

    PurchaseBookInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PurchaseBookInfo record);

    int updateById(PurchaseBookInfo purchaseBookInfo);

    int addBatch(@Param("bookList") List<PurchaseBooksInfoVo> bookList, @Param("purchaseInfoId") Integer purchaseInfoId);

    int deleteByPurchaseinfoId(Integer purchaseinfoId);

    List<PurchaseBookInfo> selectByPurchaseinfoId( Integer purchaseinfoId);


    List<PurchaseBookInfo> check(PurchaseBooksInfoVo purchaseBooksInfoVo);

    List<PurchaseBookInfo> Ware(PurchaseBooksInfoVo purchaseBooksInfoVo);

    int updatestatus(Integer id);
}
